package testview.zhen.com.myapplication.view;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

import testview.zhen.com.myapplication.tool.ParseEventStr;

import static android.view.MotionEvent.ACTION_CANCEL;

/**
 * Create by ldr
 * on 2019/8/22 14:41.
 */
public class ChildrenView extends RelativeLayout {

    public ChildrenView(Context context) {
        super(context);
    }

    public ChildrenView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.e("TAG","ChildrenView  :  onTouchEvent  " + ParseEventStr.parseEventStr(event.getAction()));
        return super.onTouchEvent(event);
//        return true;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.e("TAG","ChildrenView  :  dispatchTouchEvent  " + ParseEventStr.parseEventStr(ev.getAction()));
        return super.dispatchTouchEvent(ev);
//        return true;
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        Log.e("TAG","ChildrenView  :  onInterceptTouchEvent  " + ParseEventStr.parseEventStr(ev.getAction()));
        return super.onInterceptTouchEvent(ev);
    }



}
